home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
mint
/
utilit~1
/
gdb35src.zoo
/
dist-gdb
/
atariwait.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-03-10
|
371 b
|
18 lines
#include <mintbind.h>
#include <atarierr.h>
#include <stdio.h>
#include "wait.h"
/* we try to fake this... */
long _stksize=1024*1024;
int wait(int *x)
{
int retcode;
retcode=Pwait3(0x02,0L);
if(retcode==EFILNF) { fprintf(stderr,"No child to Pwait3() for!\n"); fflush(stderr); }
if(x!=NULL)*x=retcode;
return retcode>>16; /* here's the pid */
}